﻿<extend name="Public:base" />
<block name="title"><title>{$copinfo['nickname']}-企业信息-般若虾-高端脑力兼职</title></block>
<block name="header_styles">
    <style type="text/css">
        .main-wrapper {
            background-color: #fff;
        }
    </style>
</block>
<block name="main">
    <div class="profile-view">
        <div class="row">
            <div class="col-xs-3">
                <div class="profile-sidebar">
                    <div class="profile-box">
                        <div class="profile-avator">
                            <img src="/Public/themes/images/img-people.png" />
                        </div>
                        <div class="profile-name">
                            {$copinfo['nickname']}
                        </div>
                    </div>
                    <div class="profile-section">
                        <div class="profile-section-title">
                            基本信息
                        </div>
                        <div class="profile-section-content">
                            <ul>
                                <li>
                                    <strong>官网：</strong>
                                    <a href="{$copinfo['website']}" class="green-link" target="_blank">{$copinfo['website']}</a>
                                </li>
                                <li>
                                    <strong>所处行业：</strong>{$copinfo['industry']}
                                </li>
                                <li>
                                    <strong>坐标：</strong>{$copinfo['address']}
                                </li>
                                <li>
                                    <strong>联系电话：</strong>{$copinfo['mobile']}
                                </li>
                            </ul>
                        </div>
                    </div>


                    <div class="profile-section">
                        <div class="profile-section-title">
                            企业评价
                        </div>
                        <div class="profile-section-content">
                            <ul>
                                <li>
                                    <strong>好 评 率：</strong>&nbsp;<span class="text-orange">{$wellrate}%</span>
                                </li>
                                <li class="star-line">
                                    <strong>企业待遇：</strong>&nbsp;
                                    <div class="star-panel" data-score="{$ratearr['avg1']|score2rate}">
                                    </div>
                                    &nbsp;<span>{$ratearr['avg1']|score2rate}</span>
                                </li>
                                <li class="star-line">
                                    <strong>领导能力：</strong>&nbsp;
                                    <div class="star-panel" data-score="{$ratearr['avg2']|score2rate}"></div>
                                    &nbsp;<span>{$ratearr['avg2']|score2rate}</span>
                                </li>
                                <li class="star-line">
                                    <strong>沟通能力：</strong>&nbsp;
                                    <div class="star-panel" data-score="{$ratearr['avg3']|score2rate}"></div>
                                    &nbsp;<span>{$ratearr['avg3']|score2rate}</span>
                                </li>
                                <li class="star-line">
                                    <strong>验收速率：</strong>&nbsp;
                                    <div class="star-panel" data-score="{$ratearr['avg4']|score2rate}"></div>
                                    &nbsp;<span>{$ratearr['avg4']|score2rate}</span>
                                </li>
                            </ul>
                        </div>
                    </div>

                </div>
            </div>
            <div class="col-xs-9">
                <div class="profile-main">
                    <div class="profile-tab">
                        <ul role="tablist">
                            <li role="presentation" class="active"><a href="#main" aria-controls="main" role="tab" data-toggle="tab">企业信息</a></li>
                            <li role="presentation"><a href="#feedbacks" aria-controls="main" role="tab" data-toggle="tab">评价详情</a></li>
                        </ul>
                    </div>
                    <div class="tab-container">
                        <div class="profile-panel active" role="tabpanel" id="main">
                            <div class="profile-panel-body">
                                <h3>企业简介：</h3>
                                <p>{$copinfo['intro']}</p>
                            </div>
                            <div class="profile-panel-body">
                                <h3>企业文化：</h3>
                                <p>{$copinfo['culture']}</p>
                            </div>
                            <div class="profile-panel-body">
                                <h3>企业产品展示：</h3>
                                <p>
                                    <strong>运营案例链接：</strong> <a href="#" class="green-link">http://www.imaijia.com/detail/courses/20150811/74493.html</a>
                                </p>
                            </div>

                            <div class="profile-panel-body">
                                <h3>联系企业：</h3>
                                <table style="width:100%;" cellpadding="10">
                                    <tr>
                                    <notempty name="copinfo['job']"><td colspan="3"><strong>地址：</strong>{$copinfo['job']}</td></notempty>
                                    </tr>
                                    <tr>
                                    <notempty name="copinfo['telephone']"><td style="padding:10px 0px;"><strong>总机：</strong>{$copinfo['telephone']}</td></notmepty>
                                    <notempty name="copinfo['major']"><td><strong>客服QQ：</strong>{$copinfo['major']}</td></notempty>
                                    <notempty name="copinfo['contactemail']"><td><strong>E-mail：</strong>{$copinfo['contactemail']}</td></notempty>
                                    </tr>
                                </table>
                            </div>

                            <div class="profile-panel-body">
                                <h3>企业职位：</h3>
                                <table style="width:100%;" cellpadding="5">
                                    <volist name='joblist' id='job'>
                                    <tr>
                                        <td><strong class="text-orange">【{$job['teamname']}】</strong></td>
                                        <td>{$job['name']}</td>
                                        <td>¥{$job['salary']}</td>
                                        <td><span class="label-status">{$job['moneyin']|toTuoguanDesc}</span></td>
                                        <td style="width:70px;"><a href="{$job.pid|genJobURL}">申请</a></td>
                                    </tr>
                                    </volist>
                                </table>
                            </div>

                        </div>
                        <div class="profile-feedbacks" role="tabpanel" id="feedbacks">
                            <volist name='uclist' id='uc'>
                            <div class="profile-feedback-item">
                                <span class="feedback-status">{$uc['rate']|rate2C}</span>
                                <div class="profile-feedback-heading">
                                    <span class="pull-right">
                                        {$uc['startdate']|toTime=###,'Y.m.d'}-{$uc['endate']|toTime=###,'Y.m.d'}
                                    </span>
                                    <span>
                                        雇员：{$uc['employee']}&nbsp;&nbsp;&nbsp;&nbsp;职位：{$uc['jobname']}
                                    </span>
                                </div>
                                <div class="profile-feedback-content">{$uc['content']} </div>
                            </div>
                            </volist>
                            {$page}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>
<block name="footer_scripts">

    <script type="text/javascript">
        requirejs(["jquery"], function () {
            $(function () {

                $(".star-panel").each(function () {
                    var total = 5;
                    var container = $(this);
                    var score = container.data("score");

                    var s1 = Math.floor(score);
                    var s2 = Math.ceil(score);
                    console.log(s1);
                    for (var i = 0; i < s1; i++) {
                        container.append("<span class='fa fa-star'></span>");
                    }
                    if (score - s1 > 0) {
                        container.append("<span class='fa fa-star-half-o'></span>");
                    }

                    for (var i = 0; i < total - s2; i++) {
                        container.append("<span class='fa fa-star-o'></span>");
                    }
                });
            });

        });
    </script>
</block>
